home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / basic / ace24dist.lha / ace24.lha / include / resources / misc.h < prev    next >
C/C++ Source or Header  |  1996-09-10  |  1KB  |  47 lines

  1. #ifndef RESOURCES_MISC_H
  2. #define RESOURCES_MISC_H 1
  3. /*
  4. ** misc.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/03/95
  11. **
  12. **
  13. */
  14.  
  15.  
  16. #ifndef EXEC_TYPES_H
  17. #include <exec/types.h>
  18. #endif  /* EXEC_TYPES_H */
  19.  
  20. #ifndef EXEC_LIBRARIES_H
  21. #include <exec/libraries.h>
  22. #endif  /* EXEC_LIBRARIES_H */
  23.  
  24. /*
  25.  * Unit number definitions.  Ownership of a resource grants low-level
  26.  * bit access to the hardware registers.  You are still obligated to follow
  27.  * the rules for shared access of the interrupt system (see
  28.  * exec.library/SetIntVector or cia.resource as appropriate).
  29.  */
  30. #define MR_SERIALPORT   0 /* Amiga custom chip serial port registers
  31.                  (SERDAT, SERDATR, SERPER, ADKCON,  and interrupts) */
  32. #define MR_SERIALBITS   1 /* Serial control bits (DTR, CTS,  etc.) */
  33. #define MR_PARALLELPORT 2 /* The 8 bit parallel data port
  34.                  (CIAAPRA & CIAADDRA only!) */
  35. #define MR_PARALLELBITS 3 /* All other parallel bits & interrupts
  36.                  (BUSY, ACK, etc.) */
  37.  
  38. /*
  39.  * Library vector offset definitions
  40.  */
  41. #define MR_ALLOCMISCRESOURCE    (LIB_BASE)      /* -6 */
  42. #define MR_FREEMISCRESOURCE (LIB_BASE-LIB_VECTSIZE) /* -12 */
  43.  
  44. #define MISCNAME "misc.resource"
  45.  
  46. #endif  /* RESOURCES_MISC_H */
  47.